package com.banzhi.shop.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.banzhi.shop.R;
import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.utils.Translucent;
import com.squareup.picasso.MemoryPolicy;
import com.squareup.picasso.NetworkPolicy;
import com.squareup.picasso.Picasso;

import static com.banzhi.shop.MyApp.context;

public class HelpActivity extends BaseActivity {

    private ImageView mIvBackHelp;
    private ImageView mImageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help);
        Translucent.setTranslucent(this);
        initView();
        initData();
    }

    private void initData() {
        mIvBackHelp.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        //任选帮助
        String str ="http://img.banzhishenghuo.com/asset/choicehelp.png" ;
        Picasso.with(context).load(str).memoryPolicy(MemoryPolicy.NO_CACHE).networkPolicy(NetworkPolicy.NO_CACHE).into(mImageView);
    }

    private void initView() {
        mIvBackHelp = (ImageView) findViewById(R.id.iv_back_help);
        mImageView = (ImageView) findViewById(R.id.iv_help);
    }
}
